package com.jlcloud.core.oauth2.constant;

/**
 * OAuth2ClientConstant
 *
 * @author By: JlCloud <br>
 * @Package: com.jlcloud <br>
 * @CreateTime: 2024-12-03 21:45 <br>
 * @Copyright: 2021 www.jilianjituan.com Inc. All rights reserved. <br>
 * @Caution 注意：本内容仅限于冀联人力集团内部传阅，禁止外泄以及用于其他的商业目的 <br>
 */
public interface OAuth2ClientConstant {

	/**
	 * jlcloud_client表字段
	 */
	String CLIENT_FIELDS = "id, client_id, client_secret, resource_ids, scope, authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity, refresh_token_validity, additional_information, autoapprove";

	/**
	 * jlcloud_client查询语句
	 */
	String BASE_STATEMENT = "select " + CLIENT_FIELDS + " from jlcloud_client";

	/**
	 * jlcloud_client查询排序
	 */
	String DEFAULT_FIND_STATEMENT = BASE_STATEMENT + " order by client_id";

	/**
	 * 查询client_id
	 */
	String DEFAULT_SELECT_STATEMENT = BASE_STATEMENT + " where client_id = ?";
}
